<div class="col-xs-12 dataTables_wrapper">
    <table class="table table-striped table-bordered table-hover">
        <thead>
        <tr>
            <th class="center hidden-sm hidden-xs">类型</th>
            <th class="center">日志内容</th>
            <th class="center hidden-sm hidden-xs">时间</th>
            <th class="center hidden-sm hidden-xs">操作</th>
        </tr>
        </thead>
        <tbody>
            {% for item in data.items %}
                <tr class="alert alert-{{ item.level }}" role="alert">
                    <td class="center hidden-sm hidden-xs">{{ item.type }}</td>
                    <td class="center">{{ item.data }}</td>
                    <td class="center hidden-sm hidden-xs">{{ timeTran(item.created) }}</td>
                    <td class="center hidden-sm hidden-xs">
                        <a href="{{ url(['for':'adminLogDelete','id':item.getId()]) }}" class="btn btn-xs btn-danger" data-target="#main">删除</a>
                    </td>
                </tr>
            {% endfor %}
        </tbody>
    </table>

</div>